@import "../../retina.less";

@media screen and (max-width: @screen-xs-max) {
  h1 {
    margin-top: 0;
  }
}

.paperwork-logo {
  padding: 9px 6px;
  margin-left: 0px !important;

  img {
    width: 32px;
    height: 32px;
    display: inline-block;
  }
}

.paperwork-logo.navbar-brand {
    margin: 0px 5px 0px 0px !important;
}

/*
 * Base structure
 */

/* Always display scrollbar for consistency's sake */
html {
  overflow-y: scroll;
}

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
  padding-right: 0px !important;
}

/*
 * Global add-ons
 */

label {
  .label-description {
    margin-top: 4px;
    font-weight: 300;
    font-size: 0.9em;
  }
}

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid @gray;
}

.container-scrollable {
  height: 240px;
  overflow-y: auto;
  overflow-x: hidden;

  border: @gray-medium 1px solid;
  border-radius: @border-radius-base;

  padding: 0px 0px 8px 0px;
}

.container-scrollable.error {
    color: #424242;
    border-color: @brand-danger;
}

.note-tags-bar {
  margin: 16px 0px 10px 0px;
}

.label-tag {
  padding: 5px 9px;
  margin: 3px 6px 3px 0px;
  font-size: 1em;
  line-height: 1em;
  font-weight: 300;
  cursor: pointer;

  i.fa {
    font-size: 0.9em;
  }
}

.label-tag-private {
  color: @tag-private-color;
  background-color: @tag-private-bg;
}

.label-tag-public {
  color: @tag-public-color;
  background-color: @tag-public-bg;
}

#wayback-machine {
  margin-bottom: 16px;
}

/* Bootstrap Tagsinput */

.bootstrap-tagsinput {
  background-color: @white;
  border: 1px solid @gray-medium;
  display: block;
  padding: 4px 6px;
  color: @text-color;
  vertical-align: middle;
  border-radius: 4px;
  max-width: 100%;
  line-height: 22px;
  cursor: text;
  font-size: 1.1em;

  input {
    border: none;
    box-shadow: none;
    outline: none;
    background-color: transparent;
    padding: 0 6px;
    margin: 0;
    width: auto !important;
    min-width: 120px;
    max-width: inherit;
  }

  input:focus {
    border: none;
    box-shadow: none;
  }

  .tag {
    border-radius: 0.25em;
    padding: 4px 8px;
    margin: 3px 6px 3px 0px;
    font-size: 0.9em;
    line-height: 1em;
    font-weight: 100;
  }
  .tag [data-role="remove"] {
    font-weight: 600;
    margin-left: 8px;
    cursor: pointer;
  }
  .tag [data-role="remove"]:after {
    content: "x";
    padding: 0px 2px;
  }
  .tag [data-role="remove"]:hover {
  }
  .tag [data-role="remove"]:hover:active {
  }
  .input-tag-private {
    color: @tag-private-color !important;
    background-color: @tag-private-bg;
  }

  .input-tag-public {
    color: @tag-public-color !important;
    background-color: @tag-public-bg;
  }
}

.bootstrap-tagsinput.form-control input::-moz-placeholder {
  color: @text-disabled-color;
  opacity: 1;
}
.bootstrap-tagsinput.form-control input:-ms-input-placeholder {
  color: @text-disabled-color;
}
.bootstrap-tagsinput.form-control input::-webkit-input-placeholder {
  color: @text-disabled-color;
}

/* Customize container */
@media (min-width: 768px) {
  .container-narrow {
    max-width: 430px;
    margin-right: auto;
    margin-left: auto;
  }
}

.footer-issue {
  position: fixed;
  bottom: 0px;
  left: 8px;
  width: 15%;
  min-width: 220px;
  z-index: 9999;
  cursor: pointer;

  @media screen and (max-width: @screen-xs-max) {
    position: static;
    width: auto;
    display: block;

    .make-row();

    &:after {
      content: '';
      display: block;

      width: 100%;
      clear: both;
    }

    > .error-reporting {
      .make-xs-column(12);
    }

  }
}

.fa {
  font-size: 14px
}

.disable-selection {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.padding-twenty {
  padding: 20px;
}

.transition-effect {
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  -o-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.animate-button-short {
    display: inline-block!important;
    opacity: 0;
    width: 0;
}

.animate-button-short {
  -webkit-transition: opacity 0.25s, width 0.25s;
  -moz-transition: opacity 0.25s, width 0.25s;
  -o-transition: opacity 0.25s, width 0.25s;
  transition: opacity 0.25s, width 0.25s;
  width:60px;
  opacity:1;
  }

.animate-button-short.ng-hide {
  opacity:0;
  width: 0px;
}


.animate-panel {
    opacity: 0;
}

.animate-panel {
  -webkit-transition: opacity 0.25s, width 0.25s;
  -moz-transition: opacity 0.25s, width 0.25s;
  -o-transition: opacity 0.25s, width 0.25s;
  transition: opacity 0.25s, width 0.25s;
  opacity:1;
  }

.animate-panel.ng-hide {
  opacity:0;
}

.animate-fade {
    transition: 0.5s linear all;
    opacity: 1;
}
.animate-fade.ng-hide {
    opacity: 0;
}

/*
 * Customize navbars
 */

//Hide empty space on top of notes in small screens
@media (max-width: 767px) {
  .navbar.navbar-inverse{
    display: none;
  }
  .navbar.navbar-inverse.navbar-edit{
    display: block;
    margin:0;
  }
  .navbar-nav.navbar-edit{
    float:left;
    margin:0;
  }
  .navbar-nav.navbar-right.navbar-edit{
    float:right;
  }
}

//Move note toolbar to next line when width is too small
@media (min-width: 768px) and (max-width: 850px) {
    #notebook-selector{
      margin-right:5px;
    }
    #note-toolbar{
      float:left !important;
    }
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;

  .navbar-right{
      margin-right:10px;
  }
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
}
.sidebar-collapse-switch{
  display: none;
}
@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 62px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: @white;
    border-right: 1px solid @gray;
  }
  .sidebar-collapse-switch {
    left: -35px;
    padding: 5px;
    margin-top: 10px;
    z-index: 1001;
    display: block;
    cursor: pointer;
    position: fixed;
  }
  .sidebar-collapse-switch-closed {
      left: 10px;
  }
  .sidebar-collapsed-notes-list {
      margin-left: 16px !important;
  }
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -10px;
  padding-right: 10px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: @white;
  background-color: @brand-primary;
}

/* Tabs within Forms */
.tab-pane {
  form {
    margin: 0px 12px;
  }
}

ul.nav-tabs-margin {
  margin-bottom: 15px;
}

/*
 * Main content
 */

.main {
  padding: 20px;
}

/*@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}*/

.main .page-header {
  margin-top: 0;
}
.main .page-content {
  font-size: @font-size-large;
  line-height: 1.7;
  
  img {
      max-width:100%;
      max-height: 100%;
      height: auto;
  }
  
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}
.placeholders h4 {
  margin-bottom: 0;
}
.placeholder {
  margin-bottom: 20px;
}
.placeholder img {
  display: inline-block;
  border-radius: 50%;
}


.panel-heading a:after {
    font-family: 'Glyphicons Halflings';
    content: "\e114";
    float: right;
    color: grey;
}
.panel-heading a.collapsed:after {
    content: "\e080";
}

// Notes List
.notes-list {
  .notes-list-item {
      margin-right: 1px;
      border-bottom: 1px solid @gray-light;
      background-color: @white;
      a {
        border: 2px solid @white;
      }
      a:hover {
        border: 2px solid @gray-lighter;
      }

      .notes-list-item-checkbox {
        height: 88px;
        line-height: 88px;
        padding: 0px;
        text-align: center;
        padding-left: 20px;
        z-index: 1;
      }

      .notes-list-title {
        // font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-weight: 600;
        font-size: 1.2em;
        display: block;
        white-space: nowrap;
        display: block;
        color: @text-color;
      }

      .notes-list-date {
        color: @brand-primary;
        font-weight: 400;
        display: block;
        float: left;
        text-align: center;

        padding: 2px 8px 2px 4px;

        margin-right: 8px;
        border-right: 1px solid @gray-light;

        height:56px;

        .notes-list-date-day {
          display: block;
          font-size: 1.3em;
        }

        .notes-list-date-month {
          display: block;
          font-size: 0.9em;
        }

        .notes-list-date-year {
          display: block;
          font-size: 0.7em;
        }
      }

      .notes-list-content {
        display: block;
        height: 48px;
        font-size: 1.0em;
        font-weight: 400;
        display: block;
        overflow: hidden;
        color: @text-color;
      }
      
      .draggable {
          cursor: grab;
          cursor: -moz-grab;
          cursor: -webkit-grab;
          height: 100%;
          position: absolute;
          width: 15px;
          z-index: 1;
          background-color: @brand-primary;
      }

      .notes-list-title-gradient {
        // Removed due to browser issues (e.g. Firefox)
        // background-image: -webkit-gradient(linear, left top, right top, color-stop(0.75, rgba(red(@text-color), green(@text-color), blue(@text-color), 1)), color-stop(1, rgba(red(@text-color), green(@text-color), blue(@text-color), 0)));
        // background-image: -o-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -moz-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -webkit-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -ms-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: linear-gradient(to right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // -webkit-background-clip: text;
        // -webkit-text-fill-color: transparent;
      }

      .notes-list-content-gradient {
        // Removed due to browser issues (e.g. Firefox)
        // background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.50, rgba(red(@text-color), green(@text-color), blue(@text-color), 1)), color-stop(1, rgba(red(@text-color), green(@text-color), blue(@text-color), 0)));
        // background-image: -o-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -moz-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -webkit-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -ms-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: linear-gradient(to bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // -webkit-background-clip: text;
        // -webkit-text-fill-color: transparent;
      }
  }
  
  .notes-list-item.dragging {
      cursor: grabbing;
      cursor: -moz-grabbing;
      cursor: -webkit-grabbing;
      margin-left: 0;
      width: 200px;
      z-index: 2;
  }

  .notes-list-item.active {
      a {
        border: 2px solid @brand-primary;
        background-color: @white;
      }

      .notes-list-date {
        color: @brand-primary;
      }

      .notes-list-title-gradient {
        // background-image: -webkit-gradient(linear, left top, right top, color-stop(0.75, rgba(255, 255, 255, 1)), color-stop(1, rgba(255, 255, 255, 0)));
        // background-image: -o-linear-gradient(right, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 0) 100%);
        // background-image: -moz-linear-gradient(right, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 0) 100%);
        // background-image: -webkit-linear-gradient(right, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 0) 100%);
        // background-image: -ms-linear-gradient(right, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 0) 100%);
        // background-image: linear-gradient(to right, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 0) 100%);

        // background-image: -webkit-gradient(linear, left top, right top, color-stop(0.75, rgba(red(@text-color), green(@text-color), blue(@text-color), 1)), color-stop(1, rgba(red(@text-color), green(@text-color), blue(@text-color), 0)));
        // background-image: -o-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -moz-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -webkit-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -ms-linear-gradient(right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: linear-gradient(to right, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 75%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // -webkit-background-clip: text;
        // -webkit-text-fill-color: transparent;
      }

      .notes-list-content-gradient {
        // background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.50, rgba(red(@text-color), green(@text-color), blue(@text-color), 1)), color-stop(1, rgba(red(@text-color), green(@text-color), blue(@text-color), 0)));
        // background-image: -o-linear-gradient(bottom, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
        // background-image: -moz-linear-gradient(bottom, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
        // background-image: -webkit-linear-gradient(bottom, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
        // background-image: -ms-linear-gradient(bottom, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
        // background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);

        // background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.50, rgba(red(@text-color), green(@text-color), blue(@text-color), 1)), color-stop(1, rgba(red(@text-color), green(@text-color), blue(@text-color), 0)));
        // background-image: -o-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -moz-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -webkit-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: -ms-linear-gradient(bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // background-image: linear-gradient(to bottom, rgba(red(@text-color), green(@text-color), blue(@text-color), 1) 50%, rgba(red(@text-color), green(@text-color), blue(@text-color), 0) 100%);
        // -webkit-background-clip: text;
        // -webkit-text-fill-color: transparent;
      }
  }
}

// Search
.navbar-search {
    margin: 0px;
  // border: @navbar-default-bg;
  // background-color: lighten(@navbar-default-bg, 10%);
  // color: @navbar-default-color;
}

@media (min-width: 768px) {
    .navbar-search {
        width: 120% !important;
    }
}

// Tree List
#sidebarNotebooks {
  background-color: @white;
  color: @text-color;
  // top: 50px;

  .notebook-title {
    white-space: nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
  }
}

#sidebarCalendar {

  overflow-x: auto;

  table {
    width: 99%;
    border-collapse: collapse;

    td {
      border: 1px solid @gray-light;

      .btn-default:disabled {
        background: white;

        border: none;

        color: @text-color;
      }

      .btn-default {
        font-weight: bold;

        border: none;

        &.active {
          -webkit-box-shadow: none;
          box-shadow: none;
        }
      }

      .btn-info {
        background: @brand-primary;

        border-radius: 0;
      }
    }
  }

  thead tr:first-child th {
    padding-bottom: 7px;
  }

  .glyphicon {
    font-size: large;

    &.glyphicon-chevron-right:before {
      content: "\f054" !important;
    }

    &.glyphicon-chevron-left:before {
      content: "\f053" !important;
    }
  }

  .btn-sm, .btn-group-sm > .btn {
    margin: 0;
    padding: 0;
    border: none;
  }
}

.sidebar-no-border {
  margin-top: -20px;
}

.tree {
    min-height:20px;
    margin-bottom:20px;
    margin-left:5px;

    ul.tree-base {
      padding-left: 0px;
    }

    ul.tree-child {
      font-size: 1.0em;
      padding-left: 10px;

      li {
        span {
          i.fa {
            margin-right: 6px;
            font-size: 1.2em;
          }
        }
      }

      li.tree-notebook {
        cursor: pointer;

        .notebook-title.active, [ng-drop].drag-enter {
          color: @brand-primary;
        }
      }
      li.tree-tag {
        cursor: pointer;
	
	span.tag-parent{
	    float:left;
	    width:auto;
	}
        span.active {
          color: @brand-primary;
        }
        div.active, [ng-drop].drag-enter {
          color: @brand-primary;
        }
      }
    }
    
    ul.tree-children {
        padding: 10px 10px 10px 0;
    }

    ul {
      li::before, li::after {
        border:0
      }
    }
    li {
        list-style-type:none;
        margin:0;
        padding:0px 0px 10px 0px;
        position:relative
    }
    li::before, li::after {
        content:'';
        left:-20px;
        position:absolute;
        right:auto
    }
    li::before {
        // border-left:1px solid #999;
        bottom:50px;
        height:100%;
        top:0;
        width:1px
    }
    li::after {
        // border-top:1px solid #999;
        height:20px;
        top:30px;
        width:25px
    }
    li span {
        display:inline-block;
        padding:1px 3px;
        text-decoration:none;
        width:100%
    }
    li.parent_li>span {
        cursor:pointer
    }
    li:last-child::before {
        height:30px
    }
    li.parent_li>span:hover, li.parent_li>span:hover+ul li span {
    }

    span.tree-header {
      cursor:pointer;
      display: block;
      padding: 10px;
      margin: 0px 0px 6px 0px;
      font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-weight: 400;
      font-size: 1.2em;

      i.fa {
        font-size: 0.8em;
        margin-right: 2px;
        width: 12px;
        height: 12px;
      }
    }
}

// file uploader
.file-upload-wrapper {
}

.file-upload-dropzone {
  background-color: @gray-lighter;
  border: 1px dashed @gray-light;
  border-radius: 9px;
  font-size: 1.1em;

  height: 42px;
  line-height: 42px;
  text-align: center;

  margin: 0px 0px 12px 0px;

  cursor: pointer;
}

.file-upload-dropzone-active {
  border: 1px solid @brand-primary;
}

.file-upload-input-hidden {
  display: block;
  visibility: hidden;
  height: 0px;
}

.table {
  thead {
    th {
      .status-th {
        width: 30px;
      }
    }
  }
  tbody {
    tr {
      .status-td {
        width: 30px;
      }
    }
  }
}

/*
 * Login / Guest
 */

body.paperwork-guest {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: @white;

  .guest-logo {
    .guest-logo-img {
      display: block;
      margin-left: auto;
      margin-right: auto;
      width: 220px;
      height: 220px;
    }
  }

  .form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;

    .form-signin-heading{
        margin-bottom:17.5px;
    }

    .checkbox {
      font-weight: normal;
      margin-bottom: 16px;
      line-height: 1.9;
    }
    .form-control {
      position: relative;
      height: auto;
      -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
      padding: 10px;
      font-size: 16px;
    }
    .form-control:focus {
      z-index: 2;
    }
    select.form-control {
      height: 44px;
    }
    .control-label {
      font-size: 16px;
    }
  }
}

/*
 * Error
 */

body.paperwork-error {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: @white;

  .error-wrapper {
    width: 55em;
    margin-left: auto;
    margin-right: auto;
  }

  .error-logo {
    display: inline-block;
    vertical-align: middle;

    .error-logo-img {
      display: block;
      margin-left: auto;
      margin-right: auto;
      width: 220px;
      height: 220px;
    }

  }

  .error-content {
      display: inline-block;
      vertical-align: middle;
  }

  .error-reporting {
      margin-top: 1em;
  }

  @media (max-width: 500px) {
    .error-logo {
        display: block;
    }

    .error-content {
        margin-bottom: 15px;
    }

    .error-wrapper {
        width: auto;
    }
  }
}

/*
 * Helpers
 */

.text-align-right {
  text-align: right;
}

.clear {
  display: block;
  float: none;
  clear: both;
}

/*
 * Bootstrap foo
 */

 .modal-backdrop {
    z-index: 9998;
 }

 .modal {
    z-index: 9999;
 }

.form-control {
	.box-shadow(0);
}

.form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
	.form-control {
		.box-shadow(0);
		&:focus {
		  @shadow: 0;
		  .box-shadow(@shadow);
		}
	}
}

.form-control-focus(@color: @input-border-focus) {
	&:focus {
		.box-shadow(0);
	}
}

.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
  @shadow: 0;
  .box-shadow(@shadow);

  &:active,
  &.active {
    .box-shadow(0);
  }
}

.paperwork-btn-styles(@btn-color: #555, @btn-highlight: #777, @btn-highlight-color: @white) {
  // #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
  // .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
  background-repeat: repeat-x;
  border-color: @btn-color;

  &:hover,
  &:focus  {
	background-color: @btn-highlight;
    border-color: darken(@btn-highlight, 4%);
    color: @btn-highlight-color;
    text-shadow: 0 0 0;
    background-position: 0 -15px;
  }

  &:active,
  &.active {
    background-color: @btn-highlight;
    border-color: darken(@btn-highlight, 14%);
    color: @btn-highlight-color;
    text-shadow: 0 0 0;
  }

  &:disabled,
  &[disabled] {
    background-color: darken(@btn-color, 12%);
    background-image: none;
  }
}

.btn-default { .paperwork-btn-styles(@btn-default-bg, @gray-lighter, @gray-darker); text-shadow: 0 1px 0 #fff; border-color: @gray; }
.btn-primary { .paperwork-btn-styles(@btn-primary-bg, darken(@btn-primary-bg, 12%)); }
.btn-success { .paperwork-btn-styles(@btn-success-bg, darken(@btn-success-bg, 12%)); }
.btn-info    { .paperwork-btn-styles(@btn-info-bg, darken(@btn-info-bg, 12%)); }
.btn-warning { .paperwork-btn-styles(@btn-warning-bg, darken(@btn-warning-bg, 12%)); }
.btn-danger  { .paperwork-btn-styles(@btn-danger-bg, darken(@btn-danger-bg, 12%)); }

/*
 * Hide Angular templating code
 * Usually template text is displayed
 * until Angular is invoked
 */
[ng-cloak] {
  display: none !important;
}

// Modal: Message
#modalMessageBox {
  z-index: 10000;
}
// End of Modal: Message

// Modal : users Select
.user-row {
    margin-left:15px;
    margin-right:15px;
    margin-top:5px;
    .perm-select {
	float:right;
    }
}


// Modal: Manage tags
.modal-manage-list {
  .manage-list-content {
    .row {
      margin-bottom: 5px;

      .line {
        display: inline-block;
        margin-top: 5px;
      }

      .col-sm-10, .col-sm-2 {
        height: 28px;
      }

      .btn-danger {
        margin-top: 4px;
      }
      .btn-info {
        margin-top: 4px;
      }
    }
  }
  .editable-container {
    .editableform {
      .editable-input {
        input {
          width: 155px;
          margin: 0;
        }
      }
      .glyphicon-ok {
        font-family: FontAwesome;

        &:before {
          content: "\f00c";
        }
      }
      .glyphicon-remove {
        font-family: FontAwesome;

        &:before {
          content: "\f00d";
        }
      }
    }
  }
  .tooltip {
    .tooltip-arrow {
      border-top-color: #CF4848;
    }
    .tooltip-inner {
      background-color: #CF4848;
    }
  }

  .shortcut-chk {
    margin-top: 5px;

    input {
      margin-right: 5px;
    }
  }
}
// End of Modal: Manage tags

/*
    Status Feedback classes
*/
// Common class for notification
[pw-status-notification] {
  .request_status_feedback {
    cursor: pointer;
    color: #FFFFFF;
    padding: 10px 0;
    position: fixed;
    text-align: center;
    width: 100%;
    top: 0px;
    z-index: 9999;
    display: none;

    // Error notification
    &.error {
      background-color: fade(@brand-danger, 65%);
    }

    // Success notification
    &.success {
      background-color: fade(@brand-success, 65%);
    }
  }
}

.navbar-right {

}

/*
    Setup Wizard CSS 
*/
html.setup_wizard {
    height: 100%;
    margin-top: -1px;
    
    body {
        margin-top: -1px;
        position: relative;
        height: 100%;
    }
    
    ul.form {
        position: relative;
        margin: 0;
        padding: 0;
        min-height: 500px;
    }
    
    ul.form li {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
        /* position: absolute; */
    }
    
    .next_step {
        position: absolute;
        bottom: 5%;
        right: 5%;
        left: 5%;
        width: 100%;
    }
    
    .wizard {
        left: 0;
        right: 0;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
        
        .container-fluid {
            display: table;
            width: 100%;
            height: 100%;
            
            .first {
                z-index: 111111111;
                display: table-cell;
                vertical-align: middle;
                padding : 0;
            }
        }
    }
    
    #progress_bar {
        width: 0;
        background-color: @brand-primary;
        height: 10px;
    }
    
    .inner.cover {
        padding: 20px 60px;
    }
    
    .center-div {
        max-width: 750px;
        margin: 0 auto;
    }
    
    #update_button {
        left: 5% !important;
        right: 5% !important;
        width: 100%;
        bottom: 25%;
    }
    
    .dbms_choice {
        width: 48%;
        height: 100%;
        float: left;
        margin-right: 10px;
    }
    
    .database_links {
        display: block;
        padding: 20px 0;
    }
    
    .database_links:not(.active) {
        font-style: italic;
        background-color: #CCCCCC;
    }
    
    .dbms_details_form {
        width: 50%;
        height: 100%;
        float: left;
    }
    
    #connection_id_success {
        padding: 5px;
        background-color: @brand-success;
    }
    
    #connection_id_failure {
        padding: 5px;
        background-color: @brand-danger;
    }
    
    #change_config {
        float: right;
    }
    
    #error_div {
        color: red;
    }
}
.new-note-notes-list-button {
    padding: 10px;
    margin-bottom: 2px;
    border: 2px solid @brand-primary;
}
.new-note-notes-list-button:hover {
    background-color: @brand-primary;
}
.new-note-notes-list-button:hover > * {
    text-decoration: none;
    color: #FFFFFF;
}